
from __future__ import unicode_literals
from django.db import models
from optitrans.domain.client import Client


class Device(models.Model):
    id = models.IntegerField(primary_key=True)
    uuid = models.CharField(max_length=64L, unique=True)
    type = models.CharField(max_length=50L)
    id_client = models.ForeignKey(Client, db_column='id_client')
    nom = models.CharField(max_length=50L)
    class Meta:
        db_table = 'device'

